//package com.ytangdata.test.rest;
//
//import org.springframework.beans.factory.BeanFactory;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.orm.hibernate4.LocalSessionFactoryBean;
//
//import edu.fudan.mylang.pf.IObjectFactory;
//import edu.fudan.mylang.pf.ObjectFactoryHibernate4Impl;
//
//@Configuration
//public class Config {
//
//	@Bean
//	public IObjectFactory objectFactory(BeanFactory factory) {
//		ObjectFactoryHibernate4Impl of = new ObjectFactoryHibernate4Impl();
//		of.setBeanFactory(factory);
//		return of;
//	}
//	@Bean
//	public LocalSessionFactoryBean sessionFactory() {
//		LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();
//		return sessionFactory;
//	}
//}
